package com.fzh.Zhanye.model;

import java.sql.Date;

public class Products extends BaseModel{
	private String proId;
	private Resources res;
	private Type2 type2;
	private String proCode;
	private String proName;
	private String weight;
	private String duoRong;
	private String pw;
	private String niuJv;
	private String pai;
	private String speed;
	public String getProId() {
		return proId;
	}
	public void setProId(String proId) {
		this.proId = proId;
	}
	public Resources getRes() {
		return res;
	}
	public void setRes(Resources res) {
		this.res = res;
	}
	public Type2 getType2() {
		return type2;
	}
	public void setType2(Type2 type2) {
		this.type2 = type2;
	}
	public String getProCode() {
		return proCode;
	}
	public void setProCode(String proCode) {
		this.proCode = proCode;
	}
	public String getProName() {
		return proName;
	}
	public void setProName(String proName) {
		this.proName = proName;
	}
	public String getWeight() {
		return weight;
	}
	public void setWeight(String weight) {
		this.weight = weight;
	}
	public String getDuoRong() {
		return duoRong;
	}
	public void setDuoRong(String duoRong) {
		this.duoRong = duoRong;
	}
	public String getPw() {
		return pw;
	}
	public void setPw(String pw) {
		this.pw = pw;
	}
	public String getNiuJv() {
		return niuJv;
	}
	public void setNiuJv(String niuJv) {
		this.niuJv = niuJv;
	}
	public String getPai() {
		return pai;
	}
	public void setPai(String pai) {
		this.pai = pai;
	}
	public String getSpeed() {
		return speed;
	}
	public void setSpeed(String speed) {
		this.speed = speed;
	}
	@Override
	public String toString() {
		return "Products [proId=" + proId + ", res=" + res + ", type2=" + type2 + ", proCode=" + proCode + ", proName="
				+ proName + ", weight=" + weight + ", duoRong=" + duoRong + ", pw=" + pw + ", niuJv=" + niuJv + ", pai="
				+ pai + ", speed=" + speed + "]";
	}
	@Override
	public int hashCode() {
		final int prime = 31;
		int result = super.hashCode();
		result = prime * result + ((duoRong == null) ? 0 : duoRong.hashCode());
		result = prime * result + ((niuJv == null) ? 0 : niuJv.hashCode());
		result = prime * result + ((pai == null) ? 0 : pai.hashCode());
		result = prime * result + ((proCode == null) ? 0 : proCode.hashCode());
		result = prime * result + ((proId == null) ? 0 : proId.hashCode());
		result = prime * result + ((proName == null) ? 0 : proName.hashCode());
		result = prime * result + ((pw == null) ? 0 : pw.hashCode());
		result = prime * result + ((res == null) ? 0 : res.hashCode());
		result = prime * result + ((speed == null) ? 0 : speed.hashCode());
		result = prime * result + ((type2 == null) ? 0 : type2.hashCode());
		result = prime * result + ((weight == null) ? 0 : weight.hashCode());
		return result;
	}
	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (!super.equals(obj))
			return false;
		if (getClass() != obj.getClass())
			return false;
		Products other = (Products) obj;
		if (duoRong == null) {
			if (other.duoRong != null)
				return false;
		} else if (!duoRong.equals(other.duoRong))
			return false;
		if (niuJv == null) {
			if (other.niuJv != null)
				return false;
		} else if (!niuJv.equals(other.niuJv))
			return false;
		if (pai == null) {
			if (other.pai != null)
				return false;
		} else if (!pai.equals(other.pai))
			return false;
		if (proCode == null) {
			if (other.proCode != null)
				return false;
		} else if (!proCode.equals(other.proCode))
			return false;
		if (proId == null) {
			if (other.proId != null)
				return false;
		} else if (!proId.equals(other.proId))
			return false;
		if (proName == null) {
			if (other.proName != null)
				return false;
		} else if (!proName.equals(other.proName))
			return false;
		if (pw == null) {
			if (other.pw != null)
				return false;
		} else if (!pw.equals(other.pw))
			return false;
		if (res == null) {
			if (other.res != null)
				return false;
		} else if (!res.equals(other.res))
			return false;
		if (speed == null) {
			if (other.speed != null)
				return false;
		} else if (!speed.equals(other.speed))
			return false;
		if (type2 == null) {
			if (other.type2 != null)
				return false;
		} else if (!type2.equals(other.type2))
			return false;
		if (weight == null) {
			if (other.weight != null)
				return false;
		} else if (!weight.equals(other.weight))
			return false;
		return true;
	}
	public Products(String creator, Date createTime, String updator, Date updateTime, String remark, String proId,
			Resources res, Type2 type2, String proCode, String proName, String weight, String duoRong, String pw,
			String niuJv, String pai, String speed) {
		super(creator, createTime, updator, updateTime, remark);
		this.proId = proId;
		this.res = res;
		this.type2 = type2;
		this.proCode = proCode;
		this.proName = proName;
		this.weight = weight;
		this.duoRong = duoRong;
		this.pw = pw;
		this.niuJv = niuJv;
		this.pai = pai;
		this.speed = speed;
	}
	public Products() {
		super();
		// TODO Auto-generated constructor stub
	}
	public Products(String creator, Date createTime, String updator, Date updateTime, String remark) {
		super(creator, createTime, updator, updateTime, remark);
		// TODO Auto-generated constructor stub
	}
	
}
